using System;
using System.Collections;
using System.Collections.Generic;

using BVMB.DataLayer.Base;

namespace BVMB.DataLayer.BusinessObjects
{
    public partial class BaoCaoDoanhThuNam : BusinessBase<int>
    {
        #region Declarations

		private decimal _tongDoanhThu = default(Decimal);
		private int _nam = default(Int32);
		
		
		private IList<BaoCaoThang> _baoCaoThangs = new List<BaoCaoThang>();
		
		#endregion

        #region Constructors

        public BaoCaoDoanhThuNam() { }

        #endregion

        #region Methods

        public override int GetHashCode()
        {
            System.Text.StringBuilder sb = new System.Text.StringBuilder();
            
            sb.Append(this.GetType().FullName);
			sb.Append(_tongDoanhThu);
			sb.Append(_nam);

            return sb.ToString().GetHashCode();
        }

        #endregion

        #region Properties

		public virtual decimal TongDoanhThu
        {
            get { return _tongDoanhThu; }
			set
			{
				OnTongDoanhThuChanging();
				_tongDoanhThu = value;
				OnTongDoanhThuChanged();
			}
        }
		partial void OnTongDoanhThuChanging();
		partial void OnTongDoanhThuChanged();
		
		public virtual int Nam
        {
            get { return _nam; }
			set
			{
				OnNamChanging();
				_nam = value;
				OnNamChanged();
			}
        }
		partial void OnNamChanging();
		partial void OnNamChanged();
		
		public virtual IList<BaoCaoThang> BaoCaoThangs
        {
            get { return _baoCaoThangs; }
            set
			{
				OnBaoCaoThangsChanging();
				_baoCaoThangs = value;
				OnBaoCaoThangsChanged();
			}
        }
		partial void OnBaoCaoThangsChanging();
		partial void OnBaoCaoThangsChanged();
		
        #endregion
    }
}
